// import './css/reset.css';
import scrollx from './basic/scrollx.vue';
//
import table from './data/table/table.vue';
// 收缩型表格
import resizetable from './data/table/resizetable.vue';
//固定列的表格
import fiexdColumnTable from './data/table/fiexdColumnTable.vue';
import popover from './others/popover.vue';
//树形结构
import tree from './data/tree/tree.vue';
import treeItem from './data/tree/treeItem.vue';

import checkbox from './form/checkbox.vue';
import radio from './form/radio.vue';
import select from './form/select.vue';
import inputdate from './form/inputdate.vue';

import icon from './others/icon.vue';

//样式
// import './index.css'

var components = {
    scrollx,
    checkbox,
    radio,
    popover,
    select,
    inputdate,
    icon,
    table,
    resizetable,
    tree,
    'fiexd-column-table': fiexdColumnTable,
    'tree-item': treeItem,
}


var prefix = 'rx-';
Object.keys(components).forEach(name => {
    Vue.component(prefix + name, components[name]);
});

import maskfn from './others/dialog/mask.js'
// import alert from './dialog/dialog.js'
import { Alert, Confirm, Msgbox } from './notice/alert';
import Toast from './notice/toast';
import Fixed from './others/fixed';
import PickDate from './form/datepicker'

var _vueProto = Vue.prototype;
_vueProto.$rxMask = maskfn;
_vueProto.$rxAlert = Alert;
_vueProto.$rxConfirm = Confirm;
_vueProto.$rxMsgbox = Msgbox;
_vueProto.$rxToast = Toast;
_vueProto.$rxFixed = Fixed;
_vueProto.$rxPickDate = PickDate;